package cn.edu.sgu.www.mhxysy.service.prop.impl;

import cn.edu.sgu.www.mhxysy.entity.prop.PropType;
import cn.edu.sgu.www.mhxysy.mapper.prop.PropTypeMapper;
import cn.edu.sgu.www.mhxysy.service.prop.PropTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class PropTypeServiceImpl implements PropTypeService {

    private final PropTypeMapper propTypeMapper;

    @Autowired
    public PropTypeServiceImpl(PropTypeMapper propTypeMapper) {
        this.propTypeMapper = propTypeMapper;
    }

    @Override
    public List<PropType> selectAll() {
        return propTypeMapper.selectList(null);
    }

    @Override
    public PropType selectById(Integer id) {
        return propTypeMapper.selectById(id);
    }

}